/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86131
 * Date: 2023-11-14
 * Time: 16:53
 */
public class Phonetest {
    public static void main(String[] args) {
        //创建对象
        test5 p = new test5();

        //叫做给手机成员赋值
        p.brand = "小米";
        p.price = 1998.8;

        //获取手机对象的值
        System.out.println(p.brand);
        System.out.println(p.price);

        //调用手机的方法
        p.call();
        p.playGame();


        test5 p2 = new test5();
        p2.brand = "华为";
        p2.price = 3000;

        System.out.println(p2.brand);
        System.out.println(p2.price);

        p2.call();
        p2.playGame();

    }
}